package com.example.demoserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demoserver.entity.InteGoods;
import com.example.demoserver.service.InteGoodsService;
import com.example.demoserver.mapper.InteGoodsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 18364
* @description 针对表【inte_goods】的数据库操作Service实现
* @createDate 2024-05-31 13:46:52
*/
@Service
public class InteGoodsServiceImpl extends ServiceImpl<InteGoodsMapper, InteGoods>
    implements InteGoodsService{
    @Autowired
    InteGoodsMapper inteGoodsMapper;
    @Override
    public List<InteGoods> selectAll() {

        return inteGoodsMapper.selectList(null);
    }

    @Override
    public Integer deleteByid(Integer id) {
        return inteGoodsMapper.deleteById(id);
    }

    @Override
    public InteGoods selectById(Integer id) {

        return inteGoodsMapper.selectById(id);
    }
}




